package com.young.pattern.simpleFactoryPattern;

import lombok.extern.slf4j.Slf4j;

/**
 * 简单工厂模式:
 * 柱状图具体实现类,充当具体产品实现类
 */
@Slf4j
public class HistogramChart implements Chart{
    public HistogramChart() {
      log.info("柱状图创建了");
    }

    @Override
    public void display() {
        log.info("展示柱状图");
    }
}
